<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/10/16 0016
 * Time: 下午 10:08
 */
header('content_type:text/html;charset=utf-8');
$link = mysqli_connect('localhost','root','123456');
if(!$link){
    die('连接数据库失败!'.mysqli_eror());
}
mysqli_query('set names utf8');
mysqli_query('use `itcast`');
$sql = 'select * from `emp_info`';
$result = mysqli_query($sql,$link);
$emp_info = array();
while($row = mysqli_fetch_assoc($res)){
    $emp_info[] = $row;
}
define('APP','itcast');
require '.st_html.php';
